package day0526;

import java.util.Arrays;
import java.util.Random;

public class Test5 {
    public static void main(String[] args) {
        Calculator c=new Calculator();
        int [] a={1,6,3,98};
        int rs=c.add(a);
        System.out.println(rs);
    }
}

class Calculator {
    public static int add(int[]  a) {
        int sum = 0;
        for (int i = 0; i < a.length; i++) {
            sum=sum+a[i];
        }
        return sum;
    }
}


